<%@ page import="com.opensymphony.workflow.Workflow,
                 com.opensymphony.workflow.basic.BasicWorkflow"%>
<%@page import="com.googlecode.shapeline.web.context.support.*"%>
<%
    Workflow wf = (Workflow)ApplicationContextUtils.getInstance().getApplicationContext().getBean("workflow");
    //long id = wf.initialize("example", 0, null);
    long id = wf.initialize("simple", 0, null);
%>

New workflow entry <a href="test.jsp?id=<%=id%>">#<%=id%></a> created and initialized!

<%@ include file="nav.jsp" %>